home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / readline-2.0mg.tar.gz / readline-2.0mg.tar / readline-2.0mg / configure.in < prev    next >
Text File  |  1994-07-19  |  1KB  |  49 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(readline.h)
  3. AC_CONFIG_HEADER(config.h)
  4. AC_REVISION(Configure for Readline 2.0)
  5.  
  6. # We want these before the checks, so the checks can modify their values.
  7. test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
  8.  
  9. AC_PROG_CC
  10.  
  11. # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  12. test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
  13.  
  14. AC_SUBST(CFLAGS)dnl
  15. AC_SUBST(LDFLAGS)dnl
  16.  
  17. AC_GCC_TRADITIONAL
  18. AC_PROG_INSTALL
  19. AC_PROG_RANLIB
  20.  
  21. AC_USG
  22.  
  23. AC_HAVE_FUNCS(strcasecmp sighold)
  24.  
  25. AC_HAVE_HEADERS(unistd.h stdlib.h varargs.h string.h alloca.h \
  26.         dirent.h sys/ptem.h sys/pte.h sys/stream.h termcap.h \
  27.         termio.h)
  28.  
  29. AC_HEADER_CHECK(sys/file.h, ,AC_DEFINE(NO_SYS_FILE))
  30.  
  31. if test -z "$have_tiocgwinsz"; then
  32. AC_COMPILE_CHECK(TIOCGWINSZ in sys/ioctl.h,
  33. [#include <sys/types.h>
  34. #include <sys/ioctl.h>], [int x = TIOCGWINSZ;],
  35. AC_DEFINE(GWINSZ_IN_SYS_IOCTL))
  36. fi
  37.  
  38. AC_COMPILE_CHECK(programs able to redeclare getpw functions,
  39. [#include <sys/types.h>
  40. #include <pwd.h>
  41. extern struct passwd *getpwuid();], [struct passwd *z; z = getpwuid(0);], ,
  42. AC_DEFINE(HAVE_GETPW_DECLS))
  43.  
  44. AC_ALLOCA
  45.  
  46. AC_OUTPUT(Makefile, [
  47. # Makefile uses this timestamp file to record whether config.h is up to date.
  48. touch stamp-config])
  49.